package com.lyrcsoft.springmvc.init.handler.mapping;

import com.lyrcsoft.springmvc.controller.Controller;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessor;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

/**
 * @author fujc-dev@qq.com
 * @version 1.0
 */
@Component
public class BeanNameHandlerMapping implements HandlerMapping, InstantiationAwareBeanPostProcessor {

    private static final Map<String, Controller> map = new HashMap<>();

    @Override
    public boolean postProcessAfterInstantiation(Object bean, String beanName) throws BeansException {
        return true;
    }

    @Override
    public Object getHandlerMapping(String requestUri) {
        return null;
    }
}
